home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cgraphix
/
ccir.c
< prev
next >
Wrap
Text File
|
1986-05-28
|
791b
|
43 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
/* program DrawPoints; */
extern int InitGraphic();
extern int DrawBorder();
extern int LeaveGraphic();
extern int DrawPoint();
extern double GetAspect();
main()
{
int i;
double AspectLoc, rad;
InitGraphic(); /* init the system and screen */
DefineWorld(1, 0., 0., 1000., 1000.);
SelectWorld(1);
SelectWindow(1);
SetBackground(0);
DrawBorder();
rad = 1.5;
AspectLoc = GetAspect();
SetAspect(.2);
for (i = 1; i <= 20; i++) {
DrawCircle((double)500., (double)500., rad);
SetAspect(.2+i/10.);
rad = rad - .05;
}
SetAspect(AspectLoc);
inkey();
LeaveGraphic();
}